package cn.class2.demo8.ysz

/**
  * Created by lzd on 2018/11/28.
  */
class Demo2(str: String) {
  def hello(): String = {
    str + " world"
  }
}

object Demo2 {
  def main(args: Array[String]): Unit = {
    import MyPreDef._
    println("my hello".hello())
  }
}
